< previous page page_305 next page >

Page 305
Use the Count property to retrieve the number of elements in the collection. The Item property is used to reference the desired element in the collection. To use it, you treat it as you do any function, passing in the key value of the object you want.
The more special property of the CSession class is the isLoggedIn property. This simply is a boolean indicator to test whether the user successfully logged in to the system. It's particularly useful when initializing all classes and forms that depend on the user having successfully logged into the application.
Every Role class has a property for every form and the IDs of the role it represents. The AllForms property contains every form that the role uses in implementing its tasks. The RoleID property is the identifier of the underlying role and is meaningful to the customer.
The Process class has the following properties:
CurrTaskID
isCurrTaskComplete
ProcessID
ProcessState
The CurrTaskID property holds the task identifier of the current task being performed by the role's user (also known as a role instance). The isCurrTaskComplete property is a boolean indicator that lets the Workgroup object know whether the current task is complete. The ProcessID and ProcessState properties are the identifiers and current state of the process, respectively. ProcessState could have just as easily been named ProcessStatus.
Finally, the very important class, the Workgroup, has the following properties:
AllProcesses
AllRoles
CurrProcess
isProcessComplete
The AllProcesses and AllRoles properties holds references to the collection of Process and Role objects, respectively, owned by the Workgroup. These properties make it easy to track processes and worker roles from the time the user logs in until the user logs off and terminates the application. The CurrProcess property holds a reference to the current Process object that implements the current process. The isProcessComplete property is a boolean indicator that lets the Workgroup object know whether a process has been completed. The process is complete when the corresponding Process object is set

 
< previous page page_305 next page >

If you like this book, buy it!